You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > LinearSystems Class > LinearSystems Methods > ComputeGain Method > LinearSystems.ComputeGain Method ([In] TVec, [In] TVec, double)
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
LinearSystems.ComputeGain Method ([In] TVec, [In] TVec, double)

Returns gain of a filter with zeroes in z and poles in p.

Syntax
C#
Visual Basic
public static double ComputeGain([In] TVec z, [In] TVec p, double Val);

Returns gain of a filter with zeroes in z and poles in p. Val parameter defines the value at which to evaluate the rational polynomial:

(x-z1)*....*(x-zn) (Val-z1)*....*(Val-zn) ------------------ ==> ---------------------- = number (x-p1)*....*(x-pn) (Val-p1)*....*(Val-pn) x - variable z1..zn - zeros p1..pn - poles

The routine assumes that the coefficients of the polynomial are all real and therefore returns only the real part of the result.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!